<!DOCTYPE html>
<html lang="zh-cn">

<head>

  <!-- <head>
    <meta charset="UTF-8">

    <link rel='stylesheet' href='/stylesheets/style.css' />
    <title>Node的个人博客</title>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <meta name="description" content="Node的个人博客,分享Node.js技术,不忘初心,共同成长">
    <meta name="keywords" content="Node,Node.js,Node的博客,Node.js技术">
    <link rel="stylesheet" href="/css/normalize.css">
    <link rel="stylesheet" href="/css/main.css">
  </head> -->
  <%- include("./public/head.ejs")%>
</head>

<body>

  <!-- <header>
    <h1>个人博客</h1>
  </header> -->
  <%- include("./public/header.ejs")%>
  <section class="main floatfix">

    <%- include("./public/aside.ejs")%>
    <section class="main-articles">
      <ul>
        <% for(var i=0,max=articles.length;i< max; i++) { %>
        <li class="main-articles-item">
          <!-- <h2><a href=""><%= articles[i].articleTitle %></a></h2> -->
          <h2><a href="/articles/<%= articles[i].articleID %>"><%=articles[i].articleTitle %></a></h2>
          <section class="main-articles-items-des">
            <p>
              <span>作者: <%= articles[i].articleAuthor %></span><span>发布时间:
                <%= articles[i].articleTime %></span><span>浏览量：<%= articles[i].articleClick %></span>

              <span class="delete"><a href="/delete/<%=articles[i].articleID %>">删除</a></span>
              <span class="modify"><a href="/modify/<%=articles[i].articleID %>">编辑</a></span>

            </p>
          </section>
        </li>
        <% } %>
      </ul>
    </section>
  </section>

  <!--   <footer>
    <p>Copyright 2020 Node</p>
    <p>Powered By Express</p>
  </footer> -->
  <%- include("./public/footer.ejs")%>
</body>

</html>